import java.util.*;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.LinkedHashMap;
import java.util.Properties;
import java.util.TreeMap;
import java.util.WeakHashMap;

public class maps {
	
	public static void main(String[] args) {
		Map hasmap=new HashMap();
		Map properties=new Properties();
		Map hastable=new Hashtable();
		
		hasmap.put("title","pirates");
		hasmap.put("director","gore");
		properties.put("title","pirates");
		properties.put("director","pirates");
		System.out.println("iterating:hasmap");
		hastable.put("title","pirates");
		hastable.put("director","gore");
		
		
		Iterator hasmapkey= hasmap.keySet().iterator();
		Iterator haskeyvalue=hasmap.values().iterator();
		while(hasmapkey.hasNext()){
			System.out.println(hasmapkey.next()+ " ;" + haskeyvalue.next());
		}

		Iterator hastablekey=hastable.keySet().iterator();
		Iterator hastablekeyvalue=hastable.values().iterator();
		while(hastablekey.hasNext()){
			System.out.println(hastablekey.next()+ " ;" + hastablekeyvalue.next());
			
		}
		
	}

}
